//package uk.ac.bath.Operator;
package uk.ac.bath.machine.tristate;

import uk.ac.bath.base.Value;
import java.io.*;

public class And extends BinaryOperator {

    public void binaryOp(Value a, Value b, Value c) {
        c.set(Math.min(a.val, b.val));
    }

    public Object clone() {
        return this;
    }

    public void toString(StringWriter w) {
        w.write("And ");
    }
}
